<?php
header('Access-Control-Allow-Origin:*');
use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['namespace'=>'Api'],function (){
//    显示所有标签
    Route::get('tags','ContentController@tags');
//    获取课程
    Route::get('lesson/{tid}','ContentController@lesson');
//    获取推荐课程
    Route::get('commendLesson/{row}','ContentController@commendLesson');
//    热门推荐课程
    Route::get('hotLesson/{row}','ContentController@hotLesson');
//    视频列表
    Route::get('videos/{lessinId}','ContentController@videos');
    //轮播图列表
    Route::get('getSlider','ContentController@getSlider');
});
